package com.lq.ecoldchain.ui.mine.certification.addcertification

import org.kodein.di.Kodein
import org.kodein.di.android.support.AndroidLifecycleScope
import org.kodein.di.generic.bind
import org.kodein.di.generic.instance
import org.kodein.di.generic.scoped
import org.kodein.di.generic.singleton

/*
*2019/1/16 0016  15:33
*function by lq
*/
val addCertificationKodeinModule = Kodein.Module("Add_Certification_KodeinModule"){

    bind<AddCertificationViewModel>() with scoped(AndroidLifecycleScope).singleton {
        AddCertificationViewModel()
    }

    bind<AddCertificationDelegate>() with scoped(AndroidLifecycleScope).singleton {
        AddCertificationDelegate(
                instance()
        )
    }
}